package com.yl.dao;

import com.yl.entity.PermissionEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单表
 * 
 * @author zlj
 * @email 328727561@qq.com
 * @date 2024-04-17 11:28:08
 */
@Mapper
public interface PermissionDao extends BaseMapper<PermissionEntity> {

    /**
     * 根据用户id查询权限菜单列表
     */
    List<PermissionEntity> findPermissionListByUserId(@Param("userId") Long userId);

}
